package com.tencent.qcloud.qiaoqiao.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.flyco.roundview.RoundLinearLayout;
import com.tencent.qcloud.qiaoqiao.R;
import com.tencent.qcloud.qiaoqiao.login.TCLoginActivity;
import com.tencent.qcloud.qiaoqiao.ui.BaseActivity;
import com.tencent.qcloud.qiaoqiao.ui.tools.utilCode.ActivityUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class VideoLoginActivity extends BaseActivity {

    @BindView(R.id.btn_wx_login)
    RoundLinearLayout btnWxLogin;
    @BindView(R.id.btn_user_login)
    RoundLinearLayout btnUserLogin;

    public static void StartActivity() {
        ActivityUtils.startActivity(VideoLoginActivity.class);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_enter_login_layout);
        ButterKnife.bind(this);
        btnUserLogin.setVisibility(View.GONE);
    }

    @OnClick({R.id.btn_wx_login, R.id.btn_user_login})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_wx_login:
                Intent intent = new Intent(this, TCLoginActivity.class);
                intent.putExtra("type", 1);
                ActivityUtils.startActivity(intent);
                break;
            case R.id.btn_user_login:
                Intent intent2 = new Intent(this, TCLoginActivity.class);
                intent2.putExtra("type", 0);
                ActivityUtils.startActivity(intent2);
                break;
        }

    }

}
